<script lang="ts">

import { defineComponent,ref } from 'vue'

export default defineComponent({
  setup() {
    const count = ref(0);
    const increment = () => {
      count.value++;
    };

    return {
      count,
      increment,
    };
  },
});

</script>
<template>
    <input type="text"  v-model="count">
    <button @click="increment">点击</button>
</template>
<style scoped>
input{
    border: 1px solid #ccc;
    text-align:right;
}
</style>

